import numpy as np


# a = [i  for i in range(20)]
# b = [i for i in range(10)]

a = np.array([-4.78704,7.29176,3.12263,-8.72102,6.54695,0.408178,-4.7643,8.49932,4.50451,4.82586,-1.61296,-6.11842,6.81645,-4.72776,9.40993,9.21799,6.30043,0.356149,9.26544,0.188188,6.08789,-2.20969,-3.79914,4.79643,6.3003,5.77904,8.94648,-5.96991,3.8167,-0.0843859,-4.35136,5.73947,-7.23059,-5.68433,-7.1156,6.5942,-5.82258,8.67612,2.28971,-5.46597,-6.2194,-2.35787,-4.4362,6.91762,3.8671,2.11413,-1.71618,-4.32053,-8.21891,9.02178,-4.26638,6.41182,8.89988,-9.22317,9.2729,-3.42687,-2.20216,8.36345,-3.33361,-0.582502])
b = np.array([-5.87369,6.04822,-3.36429,-5.21126,6.11504,6.70013,7.18409,9.47699,6.64836,-9.85381,7.89421,-4.50139])


# a = a.reshape(10,5)
# b = b.reshape(3,2)

print(a)
print(b)



conv=np.convolve(a,b,'full')

# for i in conv:
    # print str(i) + ' ',
for i in conv:
    print( i )


# conv=np.convolve(a,b,'same')

# for i in conv:
#     print str(i) + ' ',
# print "\n"


# conv=np.convolve(a,b,'valid')

# for i in conv:
#     print str(i) + ' ',
# print "\n"


